<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>订单详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/jsp/common/commonJs.jsp"%>
</head>
<script>

</script>
<%@ include file="/jsp/head_bus.jsp"%>
<script>
window.onload=function(){
	$("title").html("我的业务--订单详情");
};
</script>
<!-- 详情 -->
<div id="modal-23">
    <div class="modal-dialog modal-870">
        <div class="modal-content plr2">
           <div class="modal-header noborder">
               <a class="close" href="javascript:close()">×</a>   
           </div>
           <center>
	           <h2><span>
		           <c:if test="${order.orderStatus==0}">
		           		<font color=red>该订单处于待审核</font>
		           </c:if>
		           <c:if test="${order.orderStatus==7}">
		           		<font color=red>该订单已被取消</font>
		           </c:if>
		           <c:if test="${order.orderStatus==1 || order.orderStatus==2 || order.orderStatus==3}">
		           		<font color=green>该订单已通过审核</font>
		           </c:if>
	           </span></h2>
           </center>
           <div class="modal-body pt0 ">
                <h3 class="title-1"><span>客户信息</span></h3>
                <div class="d-data">
                  <label class="col-sm-2 col-xs-5 ">客户名称：</label>
                  <div class="col-sm-7  col-xs-7 ">${order.userName}</div>
                </div> 
                 <div class="d-data">
                  <label class="col-sm-2 col-xs-5">客户地址：</label>
                  <div class="col-sm-7  col-xs-7">${order.userAddress}</div>
                </div>  
                <div class="d-data">
                  <label class="col-sm-2 col-xs-5">联系电话：</label>
                  <div class="col-sm-7  col-xs-7">${order.userPhone}</div>
                </div>  
                <c:set var="count" value="0"/>
                <h3 class="title-1"><span>业务信息</span></h3>
	                <c:forEach items="${opc}" var="opc">
					      	<h2><strong style="color:grey;">${opc.productName}</strong></h2>
						      <ul class="ulColumn2">
						      	<input type="hidden" name="id" id="id" value="${opc.id}">
				      				<div class="d-data">
					                   <%--  <div class="lineWrap">
					                          <label class="col-sm-4 col-xs-5 ">付费方式：</label>
					                          <div class="col-sm-4  col-xs-7 ">${opc.paymentType}</div>
					                    </div> --%>
					                    <div class="lineWrap">                     
					                          <label class="col-sm-4 col-xs-5  line">期限：</label>
					                          <div class="col-sm-4  col-xs-7 line-1">${opc.productTime}</div>
					                     </div>
					                </div>
							      	<c:if test="${fn:length(opc.orderFieldList) > 0 }">
							      		<div class="d-data">
							      		<c:forEach items="${opc.orderFieldList}" var="of" varStatus="ofstatus">
							      			<c:if test="${'radio'==of.fieldType || 'select'==of.fieldType}">
							      				<c:forEach items="${of.fieldTypeValuePrice}" var="price">
							      					<c:if test="${of.fieldValue==price.value}">
							      						<div class="lineWrap">
									                          <label class="col-sm-4 col-xs-5  line">${of.fieldName}：</label>
									                          <div class="col-sm-4  col-xs-7 line-1">${price.fieldValue}</div>
									                     </div>
							      					</c:if>
							      				</c:forEach>
							      			</c:if>
							      			<c:if test="${'radio'!=of.fieldType && 'select'!=of.fieldType &&  'checkbox'!=of.fieldType}">
							      				<div class="lineWrap">
							                          <label class="col-sm-4 col-xs-5  line">${of.fieldName}：</label>
							                          <div class="col-sm-4  col-xs-7 line-1">${of.fieldValue}</div>
							                     </div>
							      			</c:if>
							      			<c:if test="${'checkbox'==of.fieldType}">
							      				<div class="lineWrap">
							                          <label class="col-sm-4 col-xs-5  line">${of.fieldName}：</label>
							                          <div class="col-sm-4  col-xs-7 line-1">${of.fieldValue}</div>
							                     </div>
							      			</c:if>
							                <c:if test="${ofstatus.count % 2 ==0}">
							      				 </div><div class="d-data">
							      			</c:if>
							      			<c:if test="${ofstatus.last}">
							      				</div>
							      			</c:if>
							      		</c:forEach>
							      	</c:if>
							      	<div class="d-data">
							      		 <div class="lineWrap">              
					                          <label class="col-sm-4 col-xs-5  line">产品价格：</label>
					                          <div class="col-sm-4  col-xs-7 line-1">${opc.productPrice}</div>
					                     </div>
							      	</div>
							      	<c:set var="count" value="${count+opc.productPrice}"/>
	      			</c:forEach>
                <hr>
                 <div class="d-data">
                  <label class="col-sm-2 col-xs-5 f16">订单价格：</label>
                  <div class="col-sm-7  col-xs-7"><em class="colC f25 fb">${count}</em> 元</div>
                </div>           
                <div class="form-group">
                    <div class="text-center">
                    	<a  href="javascript:window.close()">关闭</a>
                    </div>
                </div> 
           </div>
        </div>
    </div>
</div>
<script>
function close(){
	js.closeWin();
}
</script>
<%@ include file="/jsp/foot_bus.jsp"%>
